package com.bgs.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class tiaozhuan {

    //学生表
    @RequestMapping("/w")
    public String w(){
        return "wstulist";
    }

    //教室表
    @RequestMapping("/wcl")
    public String wcl(){
        return "wclasslist";
    }

    //班级表
    @RequestMapping("/wc")
    public String wc(){
        return "wclist";
    }

    //宿舍表（有下拉框和输入框的）
    @RequestMapping("/wdor")
    public String wdor(){
        return "/dormitory/wdorlistXlkAndInput";
    }

    //宿舍表（有下拉框和输入框的）
    @RequestMapping("/dor")
    public String dor(){
        return "/dormitory/dorlistXlkAndInput";
    }


    //宿舍表测试的（没有下拉框和输入框的）
    @RequestMapping("/dorceshi")
    public String dorceshi(){
        return "/dormitory/dorlist";
    }


    //宿舍表测试的（没有下拉框和输入框的）
    @RequestMapping("/cishi1")
    public String cishi1(){
        return "cishi1";
    }


    //学生端主页的所在宿舍
    @RequestMapping("/StuandDor/{dormitoryDormitoryName}")
    public String StuandDor(@PathVariable String dormitoryDormitoryName, Model m){

        System.out.println("StuandDorStuandDorStuandDorsss:::"+dormitoryDormitoryName);

        m.addAttribute("dormitoryDormitoryName",dormitoryDormitoryName);




        return "srudent/stuInfo/stuInfoBBXS";
    }

    //学生端主页的所在班级的
    @RequestMapping("/StuandGra/{gradeGradeName}")
    public String StuandGra(@PathVariable String gradeGradeName, Model m){

        System.out.println("StuandGra:::"+gradeGradeName);

        m.addAttribute("gradeGradeName",gradeGradeName);

        return "srudent/stuInfo/stuInfoBJXX";
    }



    //课程list表
    @RequestMapping("/cur")
    public String cur(){
        return "srudent/cur/curlist";
    }


    //课程表
    @RequestMapping("/curli")
    public String curli(){
        return "srudent/cur/list";
    }

    //考试表
    @RequestMapping("/eli")
    public String eli(){
        return "exam/exam";
    }


    //数表
    @RequestMapping("/trees/tree")
    public String tree(){
        return "standardData";
    }


}
